package com.ballmaze.maze;

import lombok.Data;

@Data
public class MazeLocation {
    int y;
    int x;

    public MazeLocation(int y, int x) {
        this.y = y;
        this.x = x;
    }

    public boolean isSame(MazeLocation location) {
        return this.y == location.y && this.x == location.x;
    }

    public int getLocationPower() {
        return this.y + this.x;
    }
}
